package com.ruoyi.db.domain.system;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 【商城用户】对象 pc_team_config
 * 
 * @author ruoyi
 * @date 2022-07-23
 */
@ApiModel(value = "PcTeamConfig",description = "【商城用户】对象 pc_team_config")
public class PcTeamConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台团队奖励设置主键 */
    private Long id;

    /** 团队等级 */
    @ApiModelProperty(value="团队等级",name="PcTeamConfig$teamLevel")
    @Excel(name = "团队等级")
    private String teamLevel;

    /** 团队业绩(万);申请对应团队等级需要达到的业绩 */
    @ApiModelProperty(value="团队业绩(万);申请对应团队等级需要达到的业绩",name="PcTeamConfig$teamEarns")
    @Excel(name = "团队业绩(万);申请对应团队等级需要达到的业绩")
    private String teamEarns;

    /** $column.columnComment */
    @ApiModelProperty(value="${comment}",name="PcTeamConfig$rewardRate")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal rewardRate;

    @ApiModelProperty(value="排序",name="PcPromptConfig$sort")
    @Excel(name = "排序")
    private Integer sort;
    @ApiModelProperty(value="是否是服务商",name="PcPromptConfig$isService")
    @Excel(name = "是否是服务商")
    private Integer isService;

    public BigDecimal getMinReservedGold() {
        return minReservedGold;
    }

    public void setMinReservedGold(BigDecimal minReservedGold) {
        this.minReservedGold = minReservedGold;
    }

    //用户最低预留资产(低于这个值不计算分销收益)
    private BigDecimal minReservedGold;

    public Integer getIsService() {
        return isService;
    }

    public void setIsService(Integer isService) {
        this.isService = isService;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeamLevel(String teamLevel) 
    {
        this.teamLevel = teamLevel;
    }

    public String getTeamLevel() 
    {
        return teamLevel;
    }
    public void setTeamEarns(String teamEarns) 
    {
        this.teamEarns = teamEarns;
    }

    public String getTeamEarns() 
    {
        return teamEarns;
    }
    public void setRewardRate(BigDecimal rewardRate) 
    {
        this.rewardRate = rewardRate;
    }

    public BigDecimal getRewardRate() 
    {
        return rewardRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teamLevel", getTeamLevel())
            .append("teamEarns", getTeamEarns())
            .append("rewardRate", getRewardRate())
            .toString();
    }
}
